package com.orm.handler;

import java.sql.*;

/**
 * java.sql.Date
 */
public class SqlTimestampTypeHandler extends BaseTypeHandler<Timestamp>{
	
	@Override
	public void setNotNullParameter(PreparedStatement ps, int i, Timestamp parameter, JDBCType jdbcType) throws SQLException {
		ps.setTimestamp(i, parameter);
	}
	
	@Override
	public Timestamp getNullableResult(ResultSet rs, String columnName) throws SQLException {
		return rs.getTimestamp(columnName);
	}
	
	@Override
	public Timestamp getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getTimestamp(columnIndex);
	}
}
